{% extends 'base.html' %}

{% block content %}
<h4>{% if object %}编辑违纪类型{% else %}新增违纪类型{% endif %}</h4>
<form method="post">
    {% csrf_token %}
    {{ form.as_p }}
    <button type="submit" class="btn btn-primary">提交</button>
    <a href="{% url 'core:discipline_type_list' %}" class="btn btn-secondary">返回列表</a>
</form>
{% endblock %}